package com.ruifu.pls.entity;

import com.ruifu.pls.model.odoReturn.GLDocOrderDetails;
import com.ruifu.pls.model.odoReturnAdd.GLinOrderLinesno;
import com.ruifu.pls.model.odoReturnConform.GLOrderLines;
import com.ruifu.pls.model.odoReverseAddConform.GLinReverseCargo;
import org.hibernate.annotations.NotFound;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * ********************************************************
 * * @desc  ：
 * * @author  ${user}
 * * @date    ${date}
 * * @version v1.0
 * * ${tags}
 * *******************************************************
 */
@Entity
@Table(name = "DOC_ORDER_DETAILS")
@IdClass(DocOrderDetailsId.class)
public class DocOrderDetails  implements java.io.Serializable{
    private DocOrderDetailsId id;
    private String customerid;
    private String sku;
    private String linestatus;
    private String lotnum;
    private String lotatt01;
    private String lotatt02;
    private String lotatt03;
    private String lotatt04;
    private String lotatt05;
    private String lotatt06;
    private String lotatt07;
    private String lotatt08;
    private String lotatt09;
    private String lotatt10;
    private String lotatt11;
    private String lotatt12;
    private String pickzone;
    private String location;
    private String traceid;
    private Double qtyordered;
    private Double qtysoftallocated;
    private Double qtyallocated;
    private Double qtypicked;
    private Double qtyshipped;
    private String uom;
    private String packid;
    private String softallocationrule;
    private String allocationrule;
    private String userdefine1;
    private String userdefine2;
    private String userdefine3;
    private String userdefine4;
    private String userdefine5;
    private String notes;
    private Double qtyorderedEach;
    private Double qtysoftallocatedEach;
    private Double qtyallocatedEach;
    private Double qtypickedEach;
    private Double qtyshippedEach;
    private Date addtime;
    private String addwho;
    private Date edittime;
    private String editwho;
    private String rotationid;
    private Double netweight;
    private Double grossweight;
    private Double cubic;
    private Double price;
    private String alternativesku;
    private BigDecimal kitreferenceno;
    private String DEdi01;
    private String DEdi02;
    private String DEdi03;
    private String DEdi04;
    private String DEdi05;
    private String DEdi06;
    private String DEdi07;
    private String DEdi08;
    private Double DEdi09;
    private Double DEdi10;
    private String orderlinereferenceno;
    private String DEdi11;
    private String DEdi12;
    private String DEdi13;
    private String DEdi14;
    private String DEdi15;
    private String DEdi16;
    private String DEdi17;
    private String DEdi18;
    private String DEdi19;
    private String DEdi20;
    private String kitsku;
    private String erpcancelflag;
    private String userdefine6;
    private String zonegroup;
    private String locgroup1;
    private String locgroup2;
    private String comminglesku;
    private String onestepallocation;
    private String orderlotcontrol;
    private String fullcaselotcontrol;
    private String piecelotcontrol;
    private BigDecimal referencelineno;
    private String salesorderno;
    private String salesorderlineno;
    private Double qtyreleased;
    private String freegift;
    private String rulfag;
    private String ceshi1;
    private String orderno;
    private BigDecimal orderlineno;

    //后面需要优化
    @NotFound
    private  String DESCR1;
    @NotFound
    private  String DESCR2;
    @NotFound
    private  String DESCR3;
    @NotFound
    private  String DESCR4;
    @NotFound
    private String DESCR_C;
    @NotFound
    public String getDESCR_C() {
        return DESCR_C;
    }

    public void setDESCR_C(String DESCR_C) {
        this.DESCR_C = DESCR_C;
        System.out.print(getDESCR_C());
        this.gLinOrderLinesno.setItemName(DESCR_C);
        System.out.print(getDESCR_C());
        this.gLinReverseCargo.setName(DESCR_C);
        //this.glOrderLines.setName(getDESCR_C());
    }
    @NotFound
    public String getDESCR1() {
        return DESCR1;
    }

    public void setDESCR1(String DESCR1) {
        this.DESCR1 = DESCR1;
    }
    @NotFound
    public String getDESCR2() {
        return DESCR2;
    }

    public void setDESCR2(String DESCR2) {
        this.DESCR2 = DESCR2;
    }
    @NotFound
    public String getDESCR3() {
        return DESCR3;
    }

    public void setDESCR3(String DESCR3) {
        this.DESCR3 = DESCR3;
    }
    @NotFound
    public String getDESCR4() {
        return DESCR4;
    }

    public void setDESCR4(String DESCR4) {
        this.DESCR4 = DESCR4;
    }

    public GLDocOrderDetails glDocOrderDetails = new GLDocOrderDetails();
    public GLOrderLines glOrderLines = new GLOrderLines();
    public GLinOrderLinesno gLinOrderLinesno = new GLinOrderLinesno();
    public GLinReverseCargo gLinReverseCargo = new GLinReverseCargo();
    @Id
    @Column(name = "ORDERNO", nullable = false, length = 20)
    public String getOrderno() {
        return this.orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    @Id
    @Column(name = "ORDERLINENO", nullable = false, precision = 22, scale = 0)
    public BigDecimal getOrderlineno() {
        return this.orderlineno;
    }

    public void setOrderlineno(BigDecimal orderlineno) {
        this.orderlineno = orderlineno;

        this.glOrderLines.setOrderLineNo(getOrderlineno().toString());
        this.glDocOrderDetails.setOrderLineNo(getOrderlineno().toString());
        this.gLinOrderLinesno.setOrderLineNo(getOrderlineno().toString());
        this.gLinReverseCargo.setOrderLineNo(getOrderlineno().toString());

    }

    // Constructors

    /** default constructor */
    public DocOrderDetails() {
    }

    /** minimal constructor */
    public DocOrderDetails(DocOrderDetailsId id, String customerid,
                                   String sku, String linestatus, String uom, String packid,
                                   String softallocationrule, String allocationrule, Date addtime,
                                   Date edittime, Double netweight, Double grossweight, Double cubic,
                                   Double price, String orderlotcontrol, String fullcaselotcontrol,
                                   String piecelotcontrol) {
        this.id = id;
        this.customerid = customerid;
        this.sku = sku;
        this.linestatus = linestatus;
        this.uom = uom;
        this.packid = packid;
        this.softallocationrule = softallocationrule;
        this.allocationrule = allocationrule;
        this.addtime = addtime;
        this.edittime = edittime;
        this.netweight = netweight;
        this.grossweight = grossweight;
        this.cubic = cubic;
        this.price = price;
        this.orderlotcontrol = orderlotcontrol;
        this.fullcaselotcontrol = fullcaselotcontrol;
        this.piecelotcontrol = piecelotcontrol;
    }

    /** full constructor */
    public DocOrderDetails(DocOrderDetailsId id, String customerid,
                                   String sku, String linestatus, String lotnum, String lotatt01,
                                   String lotatt02, String lotatt03, String lotatt04, String lotatt05,
                                   String lotatt06, String lotatt07, String lotatt08, String lotatt09,
                                   String lotatt10, String lotatt11, String lotatt12, String pickzone,
                                   String location, String traceid, Double qtyordered,
                                   Double qtysoftallocated, Double qtyallocated, Double qtypicked,
                                   Double qtyshipped, String uom, String packid,
                                   String softallocationrule, String allocationrule,
                                   String userdefine1, String userdefine2, String userdefine3,
                                   String userdefine4, String userdefine5, String notes,Double qtyorderedEach,
                                    Double qtysoftallocatedEach,
                                   Double qtyallocatedEach, Double qtypickedEach,
                                   Double qtyshippedEach, Date addtime, String addwho, Date edittime,
                                   String editwho, String rotationid, Double netweight,
                                   Double grossweight, Double cubic, Double price,
                                   String alternativesku, BigDecimal kitreferenceno, String DEdi01,
                                   String DEdi02, String DEdi03, String DEdi04, String DEdi05,
                                   String DEdi06, String DEdi07, String DEdi08, Double DEdi09,
                                   Double DEdi10, String orderlinereferenceno, String DEdi11,
                                   String DEdi12, String DEdi13, String DEdi14, String DEdi15,
                                   String DEdi16, String DEdi17, String DEdi18, String DEdi19,
                                   String DEdi20, String kitsku, String erpcancelflag,
                                   String userdefine6, String zonegroup, String locgroup1,
                                   String locgroup2, String comminglesku, String onestepallocation,
                                   String orderlotcontrol, String fullcaselotcontrol,
                                   String piecelotcontrol, BigDecimal referencelineno,
                                   String salesorderno, String salesorderlineno, Double qtyreleased,
                                   String freegift, String rulfag, String ceshi1) {
        this.id = id;
        this.customerid = customerid;
        this.sku = sku;
        this.linestatus = linestatus;
        this.lotnum = lotnum;
        this.lotatt01 = lotatt01;
        this.lotatt02 = lotatt02;
        this.lotatt03 = lotatt03;
        this.lotatt04 = lotatt04;
        this.lotatt05 = lotatt05;
        this.lotatt06 = lotatt06;
        this.lotatt07 = lotatt07;
        this.lotatt08 = lotatt08;
        this.lotatt09 = lotatt09;
        this.lotatt10 = lotatt10;
        this.lotatt11 = lotatt11;
        this.lotatt12 = lotatt12;
        this.pickzone = pickzone;
        this.location = location;
        this.traceid = traceid;
        this.qtyordered = qtyordered;
        this.qtysoftallocated = qtysoftallocated;
        this.qtyallocated = qtyallocated;
        this.qtypicked = qtypicked;
        this.qtyshipped = qtyshipped;
        this.uom = uom;
        this.packid = packid;
        this.softallocationrule = softallocationrule;
        this.allocationrule = allocationrule;
        this.userdefine1 = userdefine1;
        this.userdefine2 = userdefine2;
        this.userdefine3 = userdefine3;
        this.userdefine4 = userdefine4;
        this.userdefine5 = userdefine5;
        this.notes = notes;
        this.qtyorderedEach = qtyorderedEach;
        this.qtysoftallocatedEach = qtysoftallocatedEach;
        this.qtyallocatedEach = qtyallocatedEach;
        this.qtypickedEach = qtypickedEach;
        this.qtyshippedEach = qtyshippedEach;
        this.addtime = addtime;
        this.addwho = addwho;
        this.edittime = edittime;
        this.editwho = editwho;
        this.rotationid = rotationid;
        this.netweight = netweight;
        this.grossweight = grossweight;
        this.cubic = cubic;
        this.price = price;
        this.alternativesku = alternativesku;
        this.kitreferenceno = kitreferenceno;
        this.DEdi01 = DEdi01;
        this.DEdi02 = DEdi02;
        this.DEdi03 = DEdi03;
        this.DEdi04 = DEdi04;
        this.DEdi05 = DEdi05;
        this.DEdi06 = DEdi06;
        this.DEdi07 = DEdi07;
        this.DEdi08 = DEdi08;
        this.DEdi09 = DEdi09;
        this.DEdi10 = DEdi10;
        this.orderlinereferenceno = orderlinereferenceno;
        this.DEdi11 = DEdi11;
        this.DEdi12 = DEdi12;
        this.DEdi13 = DEdi13;
        this.DEdi14 = DEdi14;
        this.DEdi15 = DEdi15;
        this.DEdi16 = DEdi16;
        this.DEdi17 = DEdi17;
        this.DEdi18 = DEdi18;
        this.DEdi19 = DEdi19;
        this.DEdi20 = DEdi20;
        this.kitsku = kitsku;
        this.erpcancelflag = erpcancelflag;
        this.userdefine6 = userdefine6;
        this.zonegroup = zonegroup;
        this.locgroup1 = locgroup1;
        this.locgroup2 = locgroup2;
        this.comminglesku = comminglesku;
        this.onestepallocation = onestepallocation;
        this.orderlotcontrol = orderlotcontrol;
        this.fullcaselotcontrol = fullcaselotcontrol;
        this.piecelotcontrol = piecelotcontrol;
        this.referencelineno = referencelineno;
        this.salesorderno = salesorderno;
        this.salesorderlineno = salesorderlineno;
        this.qtyreleased = qtyreleased;
        this.freegift = freegift;
        this.rulfag = rulfag;
        this.ceshi1 = ceshi1;

    }

    // Property accessors


    @Column(name = "CUSTOMERID", nullable = false, length = 30)
    public String getCustomerid() {
        return this.customerid;
    }

    public void setCustomerid(String customerid) {
        this.customerid = customerid;
        this.glDocOrderDetails.setOwnerCode(getCustomerid());
        this.gLinOrderLinesno.setOwnerCode(getCustomerid());


    }

    @Column(name = "SKU", nullable = false, length = 50)
    public String getSku() {
        return this.sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
        this.glDocOrderDetails.setItemId(getSku());
        this.gLinOrderLinesno.setItemId(getSku());
        this.gLinOrderLinesno.setItemCode(getSku());
        this.gLinReverseCargo.setItemCode(getSku());
        this.glOrderLines.setItemCode(getSku());


       // this.gLinOrderLinesno.setExpireDate(null);

    }

    @Column(name = "LINESTATUS", nullable = false, length = 2)
    public String getLinestatus() {
        return this.linestatus;
    }

    public void setLinestatus(String linestatus) {
        this.linestatus = linestatus;
    }

    @Column(name = "LOTNUM", length = 10)
    public String getLotnum() {
        return this.lotnum;
    }

    public void setLotnum(String lotnum) {
        this.lotnum = lotnum;
    }

    @Column(name = "LOTATT01", length = 40)
    public String getLotatt01() {
        return this.lotatt01;
    }

    public void setLotatt01(String lotatt01) {
        this.lotatt01 = lotatt01;
        this.glDocOrderDetails.setProductDate(getLotatt01());

    }

    @Column(name = "LOTATT02", length = 40)
    public String getLotatt02() {
        return this.lotatt02;
    }

    public void setLotatt02(String lotatt02) {
        this.lotatt02 = lotatt02;
        this.glDocOrderDetails.setExpireDate(getLotatt02());

    }
    @Column(name = "QTYORDERED_EACH", precision = 18, scale = 8)
    public Double getQtyorderedEach() {
        return this.qtyorderedEach;
    }

    public void setQtyorderedEach(Double qtyorderedEach) {
        this.qtyorderedEach = qtyorderedEach;
        this.gLinOrderLinesno.setPlanQty(String.valueOf(getQtyorderedEach()));
        this.gLinReverseCargo.setQuantity(new Double(getQtyorderedEach()).intValue());
        this.glDocOrderDetails.setPlanQty(String.valueOf(getQtyorderedEach()));
    }

    @Column(name = "LOTATT03", length = 40)
    public String getLotatt03() {
        return this.lotatt03;
    }

    public void setLotatt03(String lotatt03) {
        this.lotatt03 = lotatt03;
    }

    @Column(name = "LOTATT04", length = 200)
    public String getLotatt04() {
        return this.lotatt04;
    }

    public void setLotatt04(String lotatt04) {
        this.lotatt04 = lotatt04;
        this.glDocOrderDetails.setProduceCode(getLotatt04());

    }

    @Column(name = "LOTATT05", length = 200)
    public String getLotatt05() {
        return this.lotatt05;
    }

    public void setLotatt05(String lotatt05) {
        this.lotatt05 = lotatt05;
        this.glDocOrderDetails.setBatchCode(getLotatt05());

    }

    @Column(name = "LOTATT06", length = 200)
    public String getLotatt06() {
        return this.lotatt06;
    }

    public void setLotatt06(String lotatt06) {
        this.lotatt06 = lotatt06;
    }

    @Column(name = "LOTATT07", length = 200)
    public String getLotatt07() {
        return this.lotatt07;
    }

    public void setLotatt07(String lotatt07) {
        this.lotatt07 = lotatt07;
    }

    @Column(name = "LOTATT08", length = 200)
    public String getLotatt08() {
        return this.lotatt08;
    }

    public void setLotatt08(String lotatt08) {
        this.lotatt08 = lotatt08;
        this.glDocOrderDetails.setInventoryType(getLotatt08());
        this.gLinReverseCargo.setInventoryType(getLotatt08());

    }

    @Column(name = "LOTATT09", length = 200)
    public String getLotatt09() {
        return this.lotatt09;
    }

    public void setLotatt09(String lotatt09) {
        this.lotatt09 = lotatt09;
    }

    @Column(name = "LOTATT10", length = 200)
    public String getLotatt10() {
        return this.lotatt10;
    }

    public void setLotatt10(String lotatt10) {
        this.lotatt10 = lotatt10;
    }

    @Column(name = "LOTATT11", length = 200)
    public String getLotatt11() {
        return this.lotatt11;
    }

    public void setLotatt11(String lotatt11) {
        this.lotatt11 = lotatt11;
    }

    @Column(name = "LOTATT12", length = 200)
    public String getLotatt12() {
        return this.lotatt12;
    }

    public void setLotatt12(String lotatt12) {
        this.lotatt12 = lotatt12;
    }

    @Column(name = "PICKZONE", length = 10)
    public String getPickzone() {
        return this.pickzone;
    }

    public void setPickzone(String pickzone) {
        this.pickzone = pickzone;
    }

    @Column(name = "LOCATION", length = 60)
    public String getLocation() {
        return this.location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Column(name = "TRACEID", length = 30)
    public String getTraceid() {
        return this.traceid;
    }

    public void setTraceid(String traceid) {
        this.traceid = traceid;
    }

    @Column(name = "QTYORDERED", precision = 18, scale = 8)
    public Double getQtyordered() {
        return this.qtyordered;
    }

    public void setQtyordered(Double qtyordered) {
        this.qtyordered = qtyordered;
    }

    @Column(name = "QTYSOFTALLOCATED", precision = 18, scale = 8)
    public Double getQtysoftallocated() {
        return this.qtysoftallocated;
    }

    public void setQtysoftallocated(Double qtysoftallocated) {
        this.qtysoftallocated = qtysoftallocated;
    }

    @Column(name = "QTYALLOCATED", precision = 18, scale = 8)
    public Double getQtyallocated() {
        return this.qtyallocated;
    }

    public void setQtyallocated(Double qtyallocated) {
        this.qtyallocated = qtyallocated;
    }

    @Column(name = "QTYPICKED", precision = 18, scale = 8)
    public Double getQtypicked() {
        return this.qtypicked;
    }

    public void setQtypicked(Double qtypicked) {
        this.qtypicked = qtypicked;
    }

    @Column(name = "QTYSHIPPED", precision = 18, scale = 8)
    public Double getQtyshipped() {
        return this.qtyshipped;
    }

    public void setQtyshipped(Double qtyshipped) {
        this.qtyshipped = qtyshipped;
    }

    @Column(name = "UOM", nullable = false, length = 10)
    public String getUom() {
        return this.uom;
    }

    public void setUom(String uom) {

        if (uom.equals("EA"))
        {
            this.gLinOrderLinesno.setUnit(getDESCR1());
            this.gLinReverseCargo.setUnit(getDESCR1());
        }
        if(uom.equals("IP") ){
            this.gLinOrderLinesno.setUnit(getDESCR2());
            this.gLinReverseCargo.setUnit(getDESCR2());
        }
        if(uom.equals("CS")){
            this.gLinOrderLinesno.setUnit(getDESCR3());
            this.gLinReverseCargo.setUnit(getDESCR3());
        }
        if(uom.equals("PL")){
            this.gLinOrderLinesno.setUnit(getDESCR4());
            this.gLinReverseCargo.setUnit(getDESCR4());

        }
    }

    @Column(name = "PACKID", nullable = false, length = 40)
    public String getPackid() {
        return this.packid;
    }

    public void setPackid(String packid) {
        this.packid = packid;
    }

    @Column(name = "SOFTALLOCATIONRULE", nullable = false, length = 20)
    public String getSoftallocationrule() {
        return this.softallocationrule;
    }

    public void setSoftallocationrule(String softallocationrule) {
        this.softallocationrule = softallocationrule;
    }

    @Column(name = "ALLOCATIONRULE", nullable = false, length = 20)
    public String getAllocationrule() {
        return this.allocationrule;
    }

    public void setAllocationrule(String allocationrule) {
        this.allocationrule = allocationrule;
    }

    @Column(name = "USERDEFINE1", length = 400)
    public String getUserdefine1() {
        return this.userdefine1;
    }

    public void setUserdefine1(String userdefine1) {
        this.userdefine1 = userdefine1;
    }

    @Column(name = "USERDEFINE2", length = 400)
    public String getUserdefine2() {
        return this.userdefine2;
    }

    public void setUserdefine2(String userdefine2) {
        this.userdefine2 = userdefine2;
    }

    @Column(name = "USERDEFINE3", length = 400)
    public String getUserdefine3() {
        return this.userdefine3;
    }

    public void setUserdefine3(String userdefine3) {
        this.userdefine3 = userdefine3;
    }

    @Column(name = "USERDEFINE4", length = 400)
    public String getUserdefine4() {
        return this.userdefine4;
    }

    public void setUserdefine4(String userdefine4) {
        this.userdefine4 = userdefine4;
    }

    @Column(name = "USERDEFINE5", length = 400)
    public String getUserdefine5() {
        return this.userdefine5;
    }

    public void setUserdefine5(String userdefine5) {
        this.userdefine5 = userdefine5;
    }

    @Column(name = "NOTES", length = 200)
    public String getNotes() {
        return this.notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }


    @Column(name = "QTYSOFTALLOCATED_EACH", precision = 18, scale = 8)
    public Double getQtysoftallocatedEach() {
        return this.qtysoftallocatedEach;
    }

    public void setQtysoftallocatedEach(Double qtysoftallocatedEach) {
        this.qtysoftallocatedEach = qtysoftallocatedEach;
    }

    @Column(name = "QTYALLOCATED_EACH", precision = 18, scale = 8)
    public Double getQtyallocatedEach() {
        return this.qtyallocatedEach;
    }

    public void setQtyallocatedEach(Double qtyallocatedEach) {
        this.qtyallocatedEach = qtyallocatedEach;
    }

    @Column(name = "QTYPICKED_EACH", precision = 18, scale = 8)
    public Double getQtypickedEach() {
        return this.qtypickedEach;
    }

    public void setQtypickedEach(Double qtypickedEach) {
        this.qtypickedEach = qtypickedEach;
    }

    @Column(name = "QTYSHIPPED_EACH", precision = 18, scale = 8)
    public Double getQtyshippedEach() {
        return this.qtyshippedEach;
    }

    public void setQtyshippedEach(Double qtyshippedEach) {
        this.qtyshippedEach = qtyshippedEach;

        this.glOrderLines.setActualQty((new Double(getQtyshippedEach()).intValue()));
        this.glDocOrderDetails.setActualQty(String.valueOf(getQtyshippedEach()));
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "ADDTIME", nullable = false, length = 7)
    public Date getAddtime() {
        return this.addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    @Column(name = "ADDWHO", length = 35)
    public String getAddwho() {
        return this.addwho;
    }

    public void setAddwho(String addwho) {
        this.addwho = addwho;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "EDITTIME", nullable = false, length = 7)
    public Date getEdittime() {
        return this.edittime;
    }

    public void setEdittime(Date edittime) {
        this.edittime = edittime;
    }

    @Column(name = "EDITWHO", length = 35)
    public String getEditwho() {
        return this.editwho;
    }

    public void setEditwho(String editwho) {
        this.editwho = editwho;
    }

    @Column(name = "ROTATIONID", length = 10)
    public String getRotationid() {
        return this.rotationid;
    }

    public void setRotationid(String rotationid) {
        this.rotationid = rotationid;
    }

    @Column(name = "NETWEIGHT", nullable = false, precision = 18, scale = 8)
    public Double getNetweight() {
        return this.netweight;
    }

    public void setNetweight(Double netweight) {
        this.netweight = netweight;
    }

    @Column(name = "GROSSWEIGHT", nullable = false, precision = 18, scale = 8)
    public Double getGrossweight() {
        return this.grossweight;
    }

    public void setGrossweight(Double grossweight) {
        this.grossweight = grossweight;
    }

    @Column(name = "CUBIC", nullable = false, precision = 18, scale = 8)
    public Double getCubic() {
        return this.cubic;
    }

    public void setCubic(Double cubic) {
        this.cubic = cubic;
    }

    @Column(name = "PRICE", nullable = false, precision = 18, scale = 8)
    public Double getPrice() {
        return this.price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Column(name = "ALTERNATIVESKU", length = 200)
    public String getAlternativesku() {
        return this.alternativesku;
    }

    public void setAlternativesku(String alternativesku) {
        this.alternativesku = alternativesku;
    }

    @Column(name = "KITREFERENCENO", precision = 22, scale = 0)
    public BigDecimal getKitreferenceno() {
        return this.kitreferenceno;
    }

    public void setKitreferenceno(BigDecimal kitreferenceno) {
        this.kitreferenceno = kitreferenceno;
    }

    @Column(name = "D_EDI_01", length = 400)
    public String getDEdi01() {
        return this.DEdi01;
    }

    public void setDEdi01(String DEdi01) {
        this.DEdi01 = DEdi01;
    }

    @Column(name = "D_EDI_02", length = 400)
    public String getDEdi02() {
        return this.DEdi02;
    }

    public void setDEdi02(String DEdi02) {
        this.DEdi02 = DEdi02;
    }

    @Column(name = "D_EDI_03", length = 400)
    public String getDEdi03() {
        return this.DEdi03;
    }

    public void setDEdi03(String DEdi03) {
        this.DEdi03 = DEdi03;
        this.glDocOrderDetails.setItemCode(getDEdi03());
        this.glOrderLines.setItemCode(getDEdi03());

    }

    @Column(name = "D_EDI_04", length = 400)
    public String getDEdi04() {
        return this.DEdi04;
    }

    public void setDEdi04(String DEdi04) {
        this.DEdi04 = DEdi04;

    }

    @Column(name = "D_EDI_05", length = 400)
    public String getDEdi05() {
        return this.DEdi05;
    }

    public void setDEdi05(String DEdi05) {
        this.DEdi05 = DEdi05;
        this.glDocOrderDetails.setItemName(getDEdi05());

    }

    @Column(name = "D_EDI_06", length = 400)
    public String getDEdi06() {
        return this.DEdi06;
    }

    public void setDEdi06(String DEdi06) {
        this.DEdi06 = DEdi06;
    }

    @Column(name = "D_EDI_07", length = 400)
    public String getDEdi07() {
        return this.DEdi07;
    }

    public void setDEdi07(String DEdi07) {
        this.DEdi07 = DEdi07;
    }

    @Column(name = "D_EDI_08", length = 400)
    public String getDEdi08() {
        return this.DEdi08;
    }

    public void setDEdi08(String DEdi08) {
        this.DEdi08 = DEdi08;
    }

    @Column(name = "D_EDI_09", precision = 18, scale = 8)
    public Double getDEdi09() {
        return this.DEdi09;
    }

    public void setDEdi09(Double DEdi09) {
        this.DEdi09 = DEdi09;
    }

    @Column(name = "D_EDI_10", precision = 18, scale = 8)
    public Double getDEdi10() {
        return this.DEdi10;
    }

    public void setDEdi10(Double DEdi10) {
        this.DEdi10 = DEdi10;
    }

    @Column(name = "ORDERLINEREFERENCENO", length = 30)
    public String getOrderlinereferenceno() {
        return this.orderlinereferenceno;
    }

    public void setOrderlinereferenceno(String orderlinereferenceno) {
        this.orderlinereferenceno = orderlinereferenceno;
    }

    @Column(name = "D_EDI_11", length = 400)
    public String getDEdi11() {
        return this.DEdi11;
    }

    public void setDEdi11(String DEdi11) {
        this.DEdi11 = DEdi11;
    }

    @Column(name = "D_EDI_12", length = 400)
    public String getDEdi12() {
        return this.DEdi12;
    }

    public void setDEdi12(String DEdi12) {
        this.DEdi12 = DEdi12;
    }

    @Column(name = "D_EDI_13", length = 400)
    public String getDEdi13() {
        return this.DEdi13;
    }

    public void setDEdi13(String DEdi13) {
        this.DEdi13 = DEdi13;
    }

    @Column(name = "D_EDI_14", length = 400)
    public String getDEdi14() {
        return this.DEdi14;
    }

    public void setDEdi14(String DEdi14) {
        this.DEdi14 = DEdi14;
    }

    @Column(name = "D_EDI_15", length = 400)
    public String getDEdi15() {
        return this.DEdi15;
    }

    public void setDEdi15(String DEdi15) {
        this.DEdi15 = DEdi15;
    }

    @Column(name = "D_EDI_16", length = 400)
    public String getDEdi16() {
        return this.DEdi16;
    }

    public void setDEdi16(String DEdi16) {
        this.DEdi16 = DEdi16;
    }

    @Column(name = "D_EDI_17", length = 400)
    public String getDEdi17() {
        return this.DEdi17;
    }

    public void setDEdi17(String DEdi17) {
        this.DEdi17 = DEdi17;
    }

    @Column(name = "D_EDI_18", length = 400)
    public String getDEdi18() {
        return this.DEdi18;
    }

    public void setDEdi18(String DEdi18) {
        this.DEdi18 = DEdi18;
    }

    @Column(name = "D_EDI_19", length = 400)
    public String getDEdi19() {
        return this.DEdi19;
    }

    public void setDEdi19(String DEdi19) {
        this.DEdi19 = DEdi19;
    }

    @Column(name = "D_EDI_20", length = 400)
    public String getDEdi20() {
        return this.DEdi20;
    }

    public void setDEdi20(String DEdi20) {
        this.DEdi20 = DEdi20;
    }

    @Column(name = "KITSKU", length = 50)
    public String getKitsku() {
        return this.kitsku;
    }

    public void setKitsku(String kitsku) {
        this.kitsku = kitsku;
    }

    @Column(name = "ERPCANCELFLAG", length = 1)
    public String getErpcancelflag() {
        return this.erpcancelflag;
    }

    public void setErpcancelflag(String erpcancelflag) {
        this.erpcancelflag = erpcancelflag;
    }

    @Column(name = "USERDEFINE6", length = 400)
    public String getUserdefine6() {
        return this.userdefine6;
    }

    public void setUserdefine6(String userdefine6) {
        this.userdefine6 = userdefine6;
    }

    @Column(name = "ZONEGROUP", length = 10)
    public String getZonegroup() {
        return this.zonegroup;
    }

    public void setZonegroup(String zonegroup) {
        this.zonegroup = zonegroup;
    }

    @Column(name = "LOCGROUP1", length = 10)
    public String getLocgroup1() {
        return this.locgroup1;
    }

    public void setLocgroup1(String locgroup1) {
        this.locgroup1 = locgroup1;
    }

    @Column(name = "LOCGROUP2", length = 10)
    public String getLocgroup2() {
        return this.locgroup2;
    }

    public void setLocgroup2(String locgroup2) {
        this.locgroup2 = locgroup2;
    }

    @Column(name = "COMMINGLESKU", length = 1)
    public String getComminglesku() {
        return this.comminglesku;
    }

    public void setComminglesku(String comminglesku) {
        this.comminglesku = comminglesku;
    }

    @Column(name = "ONESTEPALLOCATION", length = 1)
    public String getOnestepallocation() {
        return this.onestepallocation;
    }

    public void setOnestepallocation(String onestepallocation) {
        this.onestepallocation = onestepallocation;
    }

    @Column(name = "ORDERLOTCONTROL", nullable = false, length = 1)
    public String getOrderlotcontrol() {
        return this.orderlotcontrol;
    }

    public void setOrderlotcontrol(String orderlotcontrol) {
        this.orderlotcontrol = orderlotcontrol;
    }

    @Column(name = "FULLCASELOTCONTROL", nullable = false, length = 1)
    public String getFullcaselotcontrol() {
        return this.fullcaselotcontrol;
    }

    public void setFullcaselotcontrol(String fullcaselotcontrol) {
        this.fullcaselotcontrol = fullcaselotcontrol;
    }

    @Column(name = "PIECELOTCONTROL", nullable = false, length = 1)
    public String getPiecelotcontrol() {
        return this.piecelotcontrol;
    }

    public void setPiecelotcontrol(String piecelotcontrol) {
        this.piecelotcontrol = piecelotcontrol;
    }

    @Column(name = "REFERENCELINENO", precision = 22, scale = 0)
    public BigDecimal getReferencelineno() {
        return this.referencelineno;
    }

    public void setReferencelineno(BigDecimal referencelineno) {
        this.referencelineno = referencelineno;
    }

    @Column(name = "SALESORDERNO", length = 20)
    public String getSalesorderno() {
        return this.salesorderno;
    }

    public void setSalesorderno(String salesorderno) {
        this.salesorderno = salesorderno;
    }

    @Column(name = "SALESORDERLINENO", length = 20)
    public String getSalesorderlineno() {
        return this.salesorderlineno;
    }

    public void setSalesorderlineno(String salesorderlineno) {
        this.salesorderlineno = salesorderlineno;
    }

    @Column(name = "QTYRELEASED", precision = 18, scale = 8)
    public Double getQtyreleased() {
        return this.qtyreleased;
    }

    public void setQtyreleased(Double qtyreleased) {
        this.qtyreleased = qtyreleased;
    }

    @Column(name = "FREEGIFT", length = 1)
    public String getFreegift() {
        return this.freegift;
    }

    public void setFreegift(String freegift) {
        this.freegift = freegift;
    }

    @Column(name = "RULFAG", length = 1)
    public String getRulfag() {
        return this.rulfag;
    }

    public void setRulfag(String rulfag) {
        this.rulfag = rulfag;
    }

    @Column(name = "CESHI1", length = 200)
    public String getCeshi1() {
        return this.ceshi1;
    }

    public void setCeshi1(String ceshi1) {
        this.ceshi1 = ceshi1;
    }

}
